<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@include file="/WEB-INF/views/include/head.jsp" %> 
<html>
<head>
<meta name="decorator"  content="moduleList"  />
<script type="text/javascript" src="${staticPath}/lib/jquery/1.10.2/jquery.js"></script>
<script type="text/javascript"> 
	function funform(url,target){
		window.open(url,target);
	}
	 
</script>
	<script type="text/javascript" src="${staticPath}/js/list.js"></script>

</head>
<body> 
  	<tags:message content="${message}"/>
	<table class="table table-striped table-hover o-l-table" id="table1">
				<thead>
					<tr>
						<th>任务ID</th>
						<th>名称</th> 
						<th>主题</th> 
						<th>流程实例ID</th>
						<th>状态</th>
						<th>创建时间</th>
						<th>完成时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="taskInstance">
						<tr>	
								<td>${taskInstance.taskId}</td> 
								<td>${taskInstance.name}</td> 
								<td>${taskInstance.subject}</td> 
								<td>${taskInstance.instanceId}</td> 
								<td>${taskInstance.status}</td> 
								<td><fmt:formatDate value="${taskInstance.createTime}" pattern="yyyy-MM-dd"/></td> 
								<td><fmt:formatDate value="${taskInstance.dueTime}" pattern="yyyy-MM-dd"/></td> 
								<td>
									<a href="${contextPath}/bpm/bpmweb/taskView/${taskInstance.taskId}">查看</a>
									<a href="${contextPath}/bpm/agent/process/toProcessTask/${taskInstance.taskId}">处理</a>
								</td>
						</tr>
					</c:forEach>
				</tbody>
		</table>
		 <div class="o-l-page">
				<div class="col-sm-6">
					<ul class="pagination">
						<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
						<li class="disabled"><a href="#">1</a></li>
						<li class="disabled"><a href="#">下一页 &#187;</a></li>
					</ul>
				</div>
				<div class="col-sm-6">
					<span class="pull-right"> 到第<input
						class="form-control input-sm input-goto" type="text">页
						<button class="btn btn-sm btn-primary" role="button">go</button>
					</span>
				</div>
		</div> 
</body>
</html>